package com.example.cdctest.mapper;

import com.example.cdctest.pojo.TestPaperStructure;

import java.util.List;

public interface TestPaperStructureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TestPaperStructure record);

    int insertSelective(TestPaperStructure record);

    TestPaperStructure selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TestPaperStructure record);

    int updateByPrimaryKey(TestPaperStructure record);

    //查找是否已经有这个考题结构设置
    TestPaperStructure selectTestPaperStructure(TestPaperStructure paperStructure);

    //如果有的话，更改
    void updateTestPaperStructure(TestPaperStructure paperStructure);

    //如果没有,添加
    void insertTestPaperStructure(TestPaperStructure paperStructure);

    //根据考试信息的Id,查出该考试的考题结构
    List<TestPaperStructure> selectTestPaperStructureById(Integer examinationId);
}